package com.dd.spineanimmodule;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.widget.FrameLayout;

import com.badlogic.gdx.backends.android.AndroidFragmentApplication;
import com.dd.spine.SpineBaseFragment;

public class MainActivity extends FragmentActivity implements AndroidFragmentApplication.Callbacks{
    private FrameLayout mFrameLayout;
    SpineBaseFragment mSpineBaseFragment;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        FragmentManager fragmentManager=getSupportFragmentManager();
        FragmentTransaction fragmentTransaction=fragmentManager.beginTransaction();
        mSpineBaseFragment=new SpineBaseFragment();
        mSpineBaseFragment.setAdapter(new BoyAdapter());
        fragmentTransaction.replace(R.id.frameLayout,mSpineBaseFragment);
        fragmentTransaction.commitAllowingStateLoss();
    }

    @Override
    public void exit() {

    }
}
